package jframe.entity.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import jframe.entity.base.EntityBase;

/**
 * @描述:<p>系统资源菜单 </p>
 *
 * @作者: 叶平平(yepp)
 *
 * @时间: 2011-8-24 下午08:49:52
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "sys_resource")
public class Resource extends EntityBase {
	
	
	/**
	 * 节点说明
	 */
	@Column(name = "text", nullable = false)
	private String text;
	
	/**
	 * 父亲节点
	 */
	@Column(name = "pid", nullable = false)
	private String pid;
	
	/**
	 * 是否有子节点
	 */
	@Column(name = "leaf", nullable = true)
	private boolean leaf;
	
	/**
	 * url路径
	 */
	@Column(name = "href",nullable = true)
	private String href;
	
	/**
	 * 节点图片
	 */
	@Column(name = "iconCls", nullable = true)
	private String iconCls;
	
	/**
	 * 此节点是否展开
	 */
	@Column(name = "expanded", nullable = true)
	private boolean expanded;
	
	/**
	 * 节点描述
	 */
	@Column(name = "description", nullable = true)
	private String description;


	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public boolean isLeaf() {
		return leaf;
	}

	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}

	public String getHref() {
		return href;
	}

	public void setHref(String href) {
		this.href = href;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	public boolean isExpanded() {
		return expanded;
	}

	public void setExpanded(boolean expanded) {
		this.expanded = expanded;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	
}
